package com.evil.application.api;

import com.evil.application.config.FeignErrorDecoder;
import com.evil.application.pojo.dto.notify.ApplicationNotifySettingDTO;
import com.evil.common.application.dto.ApplicationKeyVersionReqDTO;
import com.evil.common.core.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 应用提醒设置接口
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@FeignClient(name = ServiceNameConstant.APPLICATION_SERVICE, configuration = {FeignErrorDecoder.class})
public interface RemoteApplicationNotifySettingService {

    /**
     * 应用提醒设置信息
     *
     * @param applicationKeyVersionReqDTO applicationKeyVersionReqDTO
     */
    @PostMapping("/remote/application/notify-setting/info")
    ApplicationNotifySettingDTO notifySettingInfo(@Validated @RequestBody ApplicationKeyVersionReqDTO applicationKeyVersionReqDTO);

    /**
     * 编辑应用提醒设置信息
     *
     * @param applicationNotifySettingDTO applicationNotifySettingDTO
     */
    @PostMapping("/remote/application/notify-setting/modify")
    void modifyNotifySetting(@Validated @RequestBody ApplicationNotifySettingDTO applicationNotifySettingDTO);
}
